package com.zyh.service.impl;

import com.zyh.entity.Authority;
import com.zyh.entity.User;
import com.zyh.mapper.Authoritymapper;
import com.zyh.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthorityServiceImpl implements AuthorityService {
    @Autowired
    Authoritymapper authoritymapper;


    @Override
    public List<Authority> selectAuthority(Authority authority) {
        return authoritymapper.selectAuthority(authority);
    }

    @Override
    public Integer updateAuthorityWithId(Authority authority) {
        return authoritymapper.updateAuthorityWithId(authority);
    }

    @Override
    public Authority selectAuthorityByid(Integer id) {
        return authoritymapper.selectAuthorityByid(id);
    }

    @Override
    public Integer addAuthority(Authority authority) {
        return authoritymapper.addAuthority(authority);
    }

    @Override
    public Integer DeleteAuthorityByids(Integer[] id) {
        return authoritymapper.DeleteAuthorityByids(id);
    }

    @Override
    public Integer countAuthority(Authority authority) {
        return authoritymapper.countAuthority(authority);
    }

    @Override
    public List<Authority> selectAuthorityBywhere(Authority authority) {
        return authoritymapper.selectAuthorityBywhere(authority);
    }


}
